<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterStaffsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('staffs', function (Blueprint $table) {
            $table->text('picture')->nullable()->comment('证件照片')->change();
            $table->text('register_steel')->nullable()->comment('入职表')->change();
            $table->text('id_card')->nullable()->comment('身份证')->change();
            $table->text('health_card')->nullable()->comment('健康证')->change();
            $table->text('job_card')->nullable()->comment('特种工作证')->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
